home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
hostid.z
/
hostid
Wrap
Text File
|
1998-10-20
|
2KB
|
67 lines
HHHHOOOOSSSSTTTTIIIIDDDD((((1111)))) HHHHOOOOSSSSTTTTIIIIDDDD((((1111))))
NNNNAAAAMMMMEEEE
hostid - set or print identifier of current host system
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
hhhhoooossssttttiiiidddd [ _h_e_x_n_u_m | _h_o_s_t_n_a_m_e ]
hhhhoooossssttttiiiidddd ----hhhh _h_o_s_t_n_a_m_e
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The _h_o_s_t_i_d command with no arguments prints the identifier of the current
host in hexadecimal. This numeric value is expected to be unique across
all hosts and is commonly set to the host's Internet address. The
super-user can set the host ID by giving an argument that is a
hexadecimal value or a hostname. With the ----hhhh option, the argument must
be a hostname. If the argument is a hostname, _h_o_s_t_i_d sets the ID to the
name's Internet address listed in /_e_t_c/_h_o_s_t_s. _H_o_s_t_i_d sets the exit
status to 0 if it successfully changed the host ID and to 1 if not. The
script /_e_t_c/_i_n_i_t._d/_n_e_t_w_o_r_k uses _h_o_s_t_i_d to set the ID during system
startup to the Internet address of the hostname found in /etc/sys_id.
FFFFIIIILLLLEEEESSSS
/etc/hosts hostname-address database
SSSSEEEEEEEE AAAALLLLSSSSOOOO
gethostid(2), sethostid(2), sysinfo(1), network(1M), hosts(4)
PPPPaaaaggggeeee 1111